package what.the.fun.services;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;

import what.the.fun.dao.CampaignDAO;
import what.the.fun.domain.Campaign;

public class CampaignServiceImpl implements CampaignService{

	@Autowired
	CampaignDAO campaignDAO;
	
	@Override
	public List<Campaign> getDataList() {
		return campaignDAO.getDataList();
	}

	@Override
	public void insertData(Campaign campaign) {
		campaignDAO.insertData(campaign);
	}

	@Override
	public void updateData(Campaign campaign) {
		campaignDAO.updateData(campaign);
	}

	@Override
	public void deleteData(String id) {
		campaignDAO.deleteData(id);
	}

	@Override
	public Campaign getData(String id) {
		return campaignDAO.getData(id);
	}

}
